package com.hellogood.yaohuo.server.serviceImpl;

import java.util.List;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;
import com.hellogood.yaohuo.server.mgr.factory.MgrFactory;
import com.hellogood.yaohuo.shared.entity.Quyu;
import com.hellogood.yaohuo.shared.services.QuyuService;

@SuppressWarnings("serial")
public class QuyuServiceImpl extends RemoteServiceServlet implements QuyuService{

	@Override
	public List<Quyu> getAllQuyuList() {
		return MgrFactory.getInstance().createQuyuMgr().getAllQuyu();
	}

	@Override
	public String deleteQuyu(String qyCode) {
		return MgrFactory.getInstance().createQuyuMgr().deleteQuyu(qyCode);
	}

	@Override
	public String createQuyu(Quyu q) {
		return MgrFactory.getInstance().createQuyuMgr().addNewQuyu(q);
	}

	

}
